Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly loosen DeviceCopy bounds #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samsartor
Copy link

@samsartor samsartor commented Aug 2, 2020

PhantomData<T> should be DeviceCopy for all T since it is a ZST and no T will actually need to be copied.
UnsafeCell<T> is a ABI-transparent wrapper type which should be DeviceCopy for all T: DeviceCopy.

I may throw more into this PR later but these are just the first two things I stubbed my toe on trying to improve the soundness of my path tracer kernel.

(this crate + ptx_builder is awesome BTW)

@samsartor
Copy link
Author

The CI failure seems unrelated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant